package com.kevin.ssh2jquery.web.view;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.kevin.ssh2jquery.service.impl.TestService;
import com.opensymphony.xwork2.ActionSupport;

public class LoginAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	@Autowired
	private TestService testServiec = new TestService() ;

	private String userName;

	private String password;

	private String checkNumber;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCheckNumber() {
		return checkNumber;
	}

	public void setCheckNumber(String checkNumber) {
		this.checkNumber = checkNumber;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String execute() {

		testServiec.getUser(0);

		return SUCCESS;
	}

	public String DoLogin() {
		return SUCCESS;
	}
}
